package com.kunya.product.dao.product;

import com.kunya.product.po.ProductDetail;
import org.apache.ibatis.annotations.Param;

public interface ProductDetailMapper {
    int deleteByPrimaryKey(@Param("productDetailId") Long productDetailId,@Param("table_prefix") String table_prefix);

    int insert(@Param("record") ProductDetail record,@Param("table_prefix") String table_prefix);

    int insertSelective(@Param("record")  ProductDetail record,@Param("table_prefix") String table_prefix);

    ProductDetail selectByPrimaryKey(@Param("productDetailId") Long productDetailId,@Param("table_prefix") String table_prefix);

    int updateByPrimaryKeySelective(@Param("record")  ProductDetail record,@Param("table_prefix") String table_prefix);

    int updateByPrimaryKeyWithBLOBs(@Param("record") ProductDetail record,@Param("table_prefix") String table_prefix);

    int updateByPrimaryKey(@Param("record") ProductDetail record,@Param("table_prefix") String table_prefix);

    /**
     * 根据商品ID删除商品详情
     * @author suimg
     * @date 2018/7/12 16:08
     */
    int deleteProductDetailByProductId(@Param("productId") Long productId,@Param("table_prefix") String table_prefix);
}